package spring.code;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Author DRevelation
 * @Date 2020-06-30 上午 9:21
 * @Desc Spring中的观察者模式
 * 用法这样，没时间调试跑起来
 */
public class SpringEvent {

    @Autowired
    private static DemoPublisher demoPublisher;

    public static void main(String[] args) {
        demoPublisher.publish("hello");
    }
}
